<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>

<div id ="link"> 
<a href ="TopicAdd.aspx">发新帖</a>
<a href ="ReplyAdd.aspx" >回复</a>
</div>
<div id ="content">
<table cellpadding ="8">
<tr id ="topic">
<td><div>
<div id ="photo"><a href =""><img  src ={postUser.Avatar} width ="100" height ="100"/></a></div>
<div id ="sendmsg"><a href ="Pages/youhp/Member/postpm.aspx">给他（她）发短消息</a></div>
<div id ="info"><ul><li> {postUser.UserName}</li><li>来自：</li></ul></div>
</div>
</td>
<td ><span><b>主题：{topic.Title}</b></span><br /><span>{topic.Body}</span> <div id ="reply"><a href ="ReplyAdd.aspx?fno=0">回复本帖</a></div></td>
</tr>
<%csharp%>
foreach(ReplyInfo reply in ReplyList)
{
<%/csharp%>
<tr id ="reply">
<td id ="replyerinfo"><div>
<div id ="Div1"><a href =""><img  src ="/support/dnt/avatars/common/3.jpg"/></a></div>
<div id ="Div2"><a href ="Pages/youhp/Member/postpm.aspx">给他（她）发短消息</a></div>
<div id ="Div3"><ul><li>{reply.PostUserName}</li><li>来自：</li></ul></div>
</div>
</td>
<td id ="replycontent"><span ><b>{reply.FloorNo}楼 回复：<%csharp%>if(reply.ReplyFloorNo ==0)<%/csharp%>{topic.Title}<%csharp%>else<%/csharp%>第{reply.ReplyFloorNo}楼</b></span><br /><span>{reply.Body}</span>
<div id ="reply1"><a href ="ReplyAdd.aspx?fno={reply.FloorNo}">回复本帖</a></div> </td>

</tr>
<%csharp%>
}
<%/csharp%>
</table>
</div>
<div id ="pages">
     <table >
     <tr><td>
            <div>
	            <a href="&page={1}">第一页</a>
	            <a href="&page={_prevpage}">上一页</a>
	            <span>...</span>
            <%csharp%>
            int pageno = 0;
            for(int i=0; i < _pageCount; i++)
            {
	            pageno ++;
            <%/csharp%>	
            <%if {pageno}==_pageIndex %>
	            <a href="&page={pageno}"><b>{pageno}</b></a>
            <%else%>
	            <a href="&page={pageno}">{pageno}</a>
            <%/if%>
            <%csharp%>
            }
            <%/csharp%>	
               <span>...</span>
	            <a href="&page={_nextpage}">下一页</a>
	            <a href="&page={_pageCount}">最后一页</a>
            </div>	
            </td><td>
            <div>
            <form method ="post" action ="">
	            <select id="pagesel" name ="pagesel">
            <%csharp%>
            for(int i=1; i <= _pageCount; i++)
            {
            <%/csharp%>

            <%if i==_pageIndex %>
	            <option value={i} selected =selected >{i}</option>
            <%else%>
	            <option value={i}>{i}</option>
            <%/if%>

            <%csharp%>
            }
            <%/csharp%>
	            </select>
	            <input type ="submit" value ="跳转到" />
            </form>
            </div>
            </td></tr>
            </table>
  </div>
 
<%template _footer%>